﻿using System;
using System.Windows;
using System.Windows.Controls;
//using SomethingSpacialClassLib.Web;
using SomethingSpacial.Web;
using SomethingSpacial.ViewModel;

namespace SomethingSpacial.Views.Admin
{
    public partial class UserGroupList : Page
    {

        SomethingSpacialContext domainContext = new SomethingSpacialContext();

        public UserGroupList()
        {
            InitializeComponent();
            Loaded += new RoutedEventHandler(UserGroupList_Loaded);
            
        }

        #region "Page Events"

        void UserGroupList_Loaded(object sender, RoutedEventArgs e)
        {
            ((UserGroupsViewModel)this.DataContext).loadUserGroups();
        }


        private void SubmitButton_Click(object sender, RoutedEventArgs e)
        {
            editDataForm.CommitEdit();
        }


        #endregion





    }
}
